import packageAxios from '../request';
const axios = packageAxios.instance;
const apiVersion = 'api/v1/bills/';

const billApi = {
    save (data) {
        return axios.post(apiVersion, data);
    },
    find (params) {
        return axios.get(apiVersion, { params });
    },
    createBill (data) {
        return axios.post(apiVersion + 'createBill', data);
    },
    findTransactioTime (params) {
        return axios.get(apiVersion + 'transactionTime', { params });
    }
};

export default billApi;
